package cn.schoolwow.workflow.module.definition.action.kit;

import cn.schoolwow.workflow.domain.deploy.WorkFlowDefinitionOption;
import cn.schoolwow.workflow.domain.deploy.WorkFlowDeployRequest;

public interface WorkFlowDeployAction {
    /**
     * 部署工作流
     * @param workFlowDeployRequest 部署流程定义请求
     * */
    void deployWorkFlow(WorkFlowDeployRequest workFlowDeployRequest);

    /**
     * 删除工作流定义
     * @param name 工作流名称
     * */
    void deleteWorkFlowDefinition(String name);

    /**
     * 更新工作流定义选项
     * @param name 工作流名称
     * @param workFlowDefinitionOption 工作流定义选项
     * */
    void updateWorkFlowDefinitionOption(String name, WorkFlowDefinitionOption workFlowDefinitionOption);

}
